#!/bin/bash

hg commit && hg push && cp -r *.html *.xml *.css *.js plugins xhtmlplugins ../wikignpi-wiki/gadgets/ && \
(
  a=`hg log -r -1 | grep -e "summary" -e "changeset"`
  cd ../wikignpi-wiki

  hg commit -m "`echo $a | sed 's=summary=\nsummary='`" && hg push
)
